package com.itheima.homework.System;

import java.util.ArrayList;
import java.util.List;

public class Demo3 {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        long l = System.currentTimeMillis();
        for (int i = 0; i <10000000 ; i++) {
            list.add(i);
        }
        long l1 = System.currentTimeMillis();
        long l2 = l1 - l;
        System.out.println("l2 = " + l2);
    }
}
